document.addEventListener('plusready',function(){
	var ws = plus.webview.currentWebview();
	var id = ws.aid;
	$.ajax({
		type:"get",
		url:apiRoot+"?m=home&c=medicinal&a=MInfo&id="+id,
		dataType :'json',
		success :function(data){
			console.log(JSON.stringify(data));
			plus.nativeUI.closeWaiting();
			$('.mui-title').text(data.title);
			$('.place').text(data.place);
			$('.pic').attr('src',webRoot+data.litpic);
			data.machining?$('.machining').html(data.machining):$('.machining').html('无');
			data.flavour?$('.flavour').html(data.flavour):$('.flavour').html('无');
			data.body?$('.mbody').html(data.body):$('.mbody').html('无');  
		},
		error :function(e){
			console.log(JSON.stringify(e));
			errortoast();
		}
	});
},false)